<center>
    <div style="width:50%;float:left;">
        <h2>二维码</h2><br>
        <a href="#" target="_blank"><img src="" id="tuiguangqr" style="width:60%;"></a>
    </div>
    <div style="width:50%;float:left;">
        <h2>海报</h2><br>
        <a href="#" target="_blank"><img src="" id="tuiguangimg" style="width:80%;"></a>
    </div>
</center>
<script>
layui.use(['admin'], function(){
var $ = layui.$
,admin = layui.admin
,view = layui.view;

    var qrurl = layui.setter.baseUrl+'/sale/tuiguangqr?id='+layui.params.id;
    var imgurl = layui.setter.baseUrl+'/sale/tuiguang?id='+layui.params.id;
    $('#tuiguangqr').attr('src', qrurl).parent().attr('href', qrurl);
    $('#tuiguangimg').attr('src', imgurl).parent().attr('href', imgurl);
    layui.params = {};
});
</script>